package com.itlong.cloud.equip.smartcard;


import com.itlong.cloud.POJO.PO.TimeTaskDevicePassRecordPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
* <desc>
*    处理一卡通上传给云端的通行记录.
* </desc>
*
* @createDate 2018-01-23
*/
@FeignClient(name="equip-service")
public interface ISmartCardEquipRecordServiceClient {

    /**
     * <desc>
     *      添加一卡通同步到云端的通行记录（目前仅支持添加访客二维码记录）。
     * <desc/>
     *
     * @param  recordPOS 通行记录信息
     * @return
     * @author LouisLewis
     * @createDate 2018-01-23
     */
    @RequestMapping(path = "/smartCard/syncData/addEquipRecordInfos", method = RequestMethod.POST)
    Integer addEquipRecordInfos(@RequestBody List<TimeTaskDevicePassRecordPO> recordPOS) throws Exception;


}
